namespace TPO.UI
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class TranslationUI : Form
    {
        private IContainer components = null;
        private RichTextBox rtb_Translation;

        public TranslationUI()
        {
            this.InitializeComponent();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.rtb_Translation = new System.Windows.Forms.RichTextBox();
            this.SuspendLayout();
            // 
            // rtb_Translation
            // 
            this.rtb_Translation.Location = new System.Drawing.Point(13, 5);
            this.rtb_Translation.Name = "rtb_Translation";
            this.rtb_Translation.ReadOnly = true;
            this.rtb_Translation.ShortcutsEnabled = false;
            this.rtb_Translation.Size = new System.Drawing.Size(679, 531);
            this.rtb_Translation.TabIndex = 1;
            this.rtb_Translation.Text = "";
            // 
            // TranslationUI
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(705, 540);
            this.Controls.Add(this.rtb_Translation);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
            this.Name = "TranslationUI";
            this.Text = "TRANSLATION";
            this.TopMost = true;
            this.Load += new System.EventHandler(this.TranslationUI_Load);
            this.ResumeLayout(false);

        }

        public void Refresh()
        {
            try
            {
                this.rtb_Translation.Rtf = MainForm.TRANSLATION;
            }
            catch
            {
            }
        }

        private void TranslationUI_Load(object sender, EventArgs e)
        {
            this.rtb_Translation.Rtf = MainForm.TRANSLATION;
        }
    }
}

